package name.jiaosha.air.system.domain;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import com.ali8ba.Domain;
@Entity
@Table(name="goods")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name="DTYPE", discriminatorType=DiscriminatorType.STRING,length=10)
public class Goods extends Domain {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id()
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	protected Integer id;
	
	@Column(name = "name", length = 30)
    protected String name;
    
	@Column(name = "pinyin", length = 30)
    protected String pinyin;
    
	@Column(name = "brand", length = 20)
    protected String brand;
    
	@Column(name = "unit", length = 5)
    protected String unit;
    
	@Column(name = "com_id")
    protected Integer comId;
    

    
    public Goods(){
    	
    }

    
	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	
	public String getPinyin() {
		return pinyin;
	}


	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	
	public String getBrand() {
		return brand;
	}


	public void setBrand(String brand) {
		this.brand = brand;
	}

	
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getComId() {
		return comId;
	}

	public void setComId(Integer comId) {
		this.comId = comId;
	}

    
    
}
